home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / rotate / rotate.doc < prev    next >
Text File  |  1994-09-22  |  2KB  |  63 lines

  1. ROTATE.DLL
  2. Copyright (C) 1994 DRAGON SOFTWARE
  3. ALL Rights RESERVED
  4.  
  5. Thank You For Trying Rotate.DLL Rotate.DLL has functions that will rotate 
  6. and mirror Bitmaps within picturebox controls using Visual Basic For windows.
  7. Provided is sample source Code Ready for Visual Basic and the EXE file.
  8.  
  9. Below is the VB declaration for the Custom Dynamic Library and should be 
  10. placed within the form declaration or the Module declaration.
  11.  
  12. Declare Function FLIP Lib "rotate.DLL" (ByVal src As Integer, ByVal dest As Integer, ByVal Picture%) As Integer
  13. Declare Function ROTATE Lib "rotate.DLL" (ByVal src As Integer, ByVal dest As Integer, ByVal Picture%) As Integer
  14.  
  15. PARAMS:
  16. SRC      = Source picture box hDC
  17. DEST     = Destination picture box hDC
  18. PICTURE  = Source Picture box HBITMAP
  19.  
  20. RETURNS:
  21. 1     =   Function was Successful
  22. 0     =   Function was not successfull
  23.  
  24. Both the destination and Source Picture boxes must have these setting.
  25.  
  26. Autoredraw = True
  27. Scalemode = 3 (PIXEL)
  28.  
  29. below is an example how to call the mirror function.
  30.  
  31. g% = FLIP(form1.Picture1.hDC, form1.Picture2.hDC, form1.Picture1.Picture)
  32.  
  33. Once the Function has been called you must Refresh the image in the 
  34. Destination Picture Box. Below is an example to do this.
  35.  
  36. Picture2.Refresh
  37.  
  38. To Convert the Destination Image to an actual picture that can be passed 
  39. from one picture box to another within Visual Basic You must place this 
  40. line after the Refresh Statement.
  41.  
  42. Picture2.Picture = Picture2.Image
  43.  
  44.  
  45. -----------------------------------------------------------------------------
  46.  
  47. CONTACTING DRAGON SOFTWARE.
  48.  
  49. SUPPORT BBS.....................................(304)363-2252
  50. AOL.............................................DSOFTWARE
  51. INTERNET........................................DSOFTWARE@AOL.COM
  52. PHONE...........................................(304)584-4143
  53. US Mail.........................................P.O. Box 299
  54.                                                 Lumberport, WV  26386
  55. -----------------------------------------------------------------------------
  56.  
  57. REGISTRATION
  58.  
  59. Please Open REGISTER.TXT
  60.  
  61.  
  62.  
  63.